/**
 * 页面只间跳转时传数据
 */
const pageDataKey = 'pageDataKey'

export function sendData(data) {
    sessionStorage.setItem(pageDataKey, null)

    sessionStorage.setItem(pageDataKey, data)
}

export function acceptData() {
    var data = sessionStorage.getItem(pageDataKey)

    sessionStorage.setItem(pageDataKey, null)

    return data
}